import { useState, useEffect, Suspense } from 'react'
import './App.css'
import { getVideosRequest, getHotwordRequest } from '@/api/index'
import Routes from '@/routes'

function App() {
  // useEffect(() => {
  //   getVideosRequest()
  //     .then(data => {
  //       console.log(data, 'logtest');
  //     })
  //   getHotwordRequest()
  //     .then(data => {
  //       console.log(data);
  //     })
  // }, [])
  return (
    <div className="App">
      <Suspense fallback={null}>
        Test Koa api
        <Routes />
      </Suspense>
    </div>
  )
}

export default App
